package jsyf.oa.facade.tmpevent;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/eventService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface EventFacade {
    @Path("/save")
    JSONObject save(String jsonData);

    @Path("/getUnDoCount")
    String getUnDoCount(String userId);

    @Path("/getByPage")
    JSONObject getByPage(String userId, String key, String companyId, String auditFlag, String type, String createUserName, int requestPage, int pageSize);

    @Path("/getById")
    JSONObject getById(String id);

    @Path("/applyAudit")
    JSONObject applyAudit(String id, String userId, String auditFlag, String advise);

    @Path("removeById")
    Boolean removeById(String id);

    @Path("/copierReturn")
    JSONObject copierReturn(String id, String copierReturnReason);

    @Path("/getFirstAuditor")
    JSONObject getFirstAuditor();

}
